//
//  HDModel.h
//  Excited
//
//  Created by X140Yu on 7/17/16.
//  Copyright © 2016 X140Yu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <YYKit/YYKit.h>

# pragma mark - 用户信息


@interface HDUser : NSObject <NSCoding>

/// 就是请求资源用的 cookie
@property (nonatomic, copy) NSString *cookie;

/// 学号 aka 登录名
@property (nonatomic, copy) NSString *username;
/// 密码
@property (nonatomic, copy) NSString *password;
/// 姓名
@property (nonatomic, copy) NSString *name;
/// 年级
@property (nonatomic, copy) NSString *grade;
/// 学院
@property (nonatomic, copy) NSString *college;
/// 专业
@property (nonatomic, copy) NSString *speciality;

@end

# pragma mark - 绩点

@interface HDCredit : NSObject <NSCoding>

// 学分绩点
@property (nonatomic, copy) NSString *gpa;
// 已修学分
@property (nonatomic, copy) NSString *passCredit;
// 挂科学分
@property (nonatomic, copy) NSString *failedCredit;

@end

# pragma mark - 成绩

@interface HDScore : NSObject <NSCoding>
/// 学年
@property (nonatomic, copy) NSString *schoolYear;
/// 学期
@property (nonatomic, copy) NSString *term;
/// 课程号
@property (nonatomic, copy) NSString *cid;
/// 课程名
@property (nonatomic, copy) NSString *name;
/// 课程类型
@property (nonatomic, copy) NSString *type;
/// 课程性质
@property (nonatomic, copy) NSString *property;
/// 学分
@property (nonatomic, copy) NSString *credit;
/// 成绩
@property (nonatomic, copy) NSString *score;
/// 修读方式
@property (nonatomic, copy) NSString *studyMethod;
/// 备注
@property (nonatomic, copy) NSString *remark;

- (NSString *)printME;

@end

# pragma mark - 新闻
// 新闻列表
@interface HDNewsListItem : NSObject <NSCoding>

// 新闻 ID
@property (nonatomic, copy) NSString *nid;
// 题图
@property (nonatomic, copy) NSString *imgUrl;
// 新闻标题
@property (nonatomic, copy) NSString *title;
// 新闻类型
@property (nonatomic, copy) NSString *type;
// 发布时间
@property (nonatomic, copy) NSString *pubTime;
// 发布者
@property (nonatomic, copy) NSString *publisher;
// 摘要
@property (nonatomic, copy) NSString *digest;

@end

// 新闻的内容
@interface HDNews : NSObject <NSCoding>
// ID
@property (nonatomic, copy) NSString *nid;
// 标题
@property (nonatomic, copy) NSString *title;
// 类型
@property (nonatomic, copy) NSString *type;
// 发布时间
@property (nonatomic, copy) NSString *pubTime;
// 发布者
@property (nonatomic, copy) NSString *publisher;
// 内容
@property (nonatomic, copy) NSString *content;

@end

# pragma mark - 培养方案

@interface HDPYFA : NSObject <NSCoding>

@property (nonatomic, copy) NSString *major;
@property (nonatomic, copy) NSString *attendYear;
@property (nonatomic, copy) NSString *academy;

- (instancetype)initWithDict:(NSDictionary *)dict;

@end
